export default function(){
    const that = {};
    that.uid = undefined;
    that.uniqueID = '10000';
    that.nickName = `小明${ Math.floor(Math.random() * 10) }`;
    that.avatarUrl = `http://www.yunspace.com.cn`;
    that.houseCardCount = 0;

    for (let i = 0; i < 7; i++) {
        that.uniqueID += Math.floor(Math.random() * 10);   
    }
    that.wxLoginSuccess = function(data){
        that.uniqueID = data.uniqueID;
        that.nickname = data.nickName;
        that.avatarUrl = data.avatarUrl;
        that.houseCardCount = 0;
    };
    that.loginSuccess = function(data) {
        console.log(`data = ${JSON.stringify(data)}`);
    }
    return that;
}